//
//  TextBootcamp.swift
//  SwiftUiExercise
//
//  Created by 徐鹏 on 2023/6/23.
//

import SwiftUI

struct TextBootcamp_03: View {
    var body: some View {
        Text("Hello, World! Tihis is the swiftful Think Bootcamp.I am really enjoying this course and learnign alot.".uppercased())
            .font(.system(size: 24,weight: .semibold,design: .rounded))
            .bold()      //加粗
            .underline(true,color: Color.red) //下划线
            .italic()    //斜体
            .multilineTextAlignment(.leading)
            .foregroundColor(.red)
            .frame(width: 200,height: 100,alignment: .leading) //宽度 200 ， 高度 100
            .minimumScaleFactor(0.1)
            .padding()
            //.strikethrough(true,color: Color.green) //划线
    }
}

struct TextBootcamp_Previews: PreviewProvider {
    static var previews: some View {
        TextBootcamp_03()
    }
}
